/*
 * @Author       : Hejh(3010733382@qq.com)
 * @Version      : V1.0
 * @Date         : 2024-01-29 12:45:29
 * @Description  : 试卷相关的一些类型
 */
import type { PageRes } from './commom'

export interface PaperReq {
  page?: number
  pageSize?: number
  chapterId?:string
}

// Paper返回实体
export interface PaperRes {
  id: string
  name: string
  sort: number
  chapterId:string
  people:string
  time:string
  pic:string
  examId:string
  Exam:any
  Chapter:any
  createTime:string
}

// 分页Paper返回实体
export type PaperPageRes = PageRes<PaperRes>

// 试卷添加请求实体类型
export interface PaperCreateReq {
  name: string
  sort?: number
  chapterId:string
  people?:string
  time?:string
  pic?:string
  url?:string
}

// 试卷修改请求实体
export interface PaperUpdateReq {
  paperId?: string
  name: string
  sort?: number
  chapterId:string
  people?:string
  time?:string
  pic?:string
  url?:string
}

export type PaperRowData = PaperRes
